<template>
	<view class="container">
		<image class="top_img" :src="info.fileurls[0]" mode="aspectFill"></image>
		<view class="content">
			<view class="flex jc_between pdx-28">
				<view class="title">{{ info.style }}</view>
				<view class="title_btn">{{ info.tool }}</view>
			</view>
			<view class="time">{{ info.createtime }}</view>
			<view class="sub_content mgb-40">
				<view class="item_title">描述内容</view>
				<view class="mgt-28 text-666">{{ info.obverse || '无描述内容' }}</view>
			</view>
			<view class="pdx-28">
				<view class="item_title">订单信息</view>
				<view class="item_box">
					<view class="item_line">
						<view class="text-666">订单号</view>
						<view>{{ info.id }}</view>
					</view>
					<view class="item_line">
						<view class="text-666">算力</view>
						<view>{{ info.cost }}</view>
					</view>
					<view class="item_line">
						<view class="text-666">创建时间</view>
						<view>{{ info.createtime }}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
		data() {
			return {
				info:{}
			}
		},
		onShow(){
			
		},
		onLoad(options) {
			this.getDetail(options.id)
		},
		methods: {
			getDetail(id){
				this.get('tool/gallery_info',{order_id:id}).then(res => {
					this.info = res.data.info
				})
			},
		}
	}
</script>

<style scoped>
	.container{
		min-height: 100vh;
	}
	.top_img{
		width: 100%;
		height: 992rpx;
	}
	.content{
		position: absolute;
		top: 954rpx;
		padding: 46rpx 0 50rpx;
		width: 100%;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 35rpx 0rpx rgba(231,231,231,0.25);
		border-radius: 40rpx 40rpx 0rpx 0rpx;
	}
	.title{
		font-size: 32rpx;
		font-weight: bold;
		max-width: 440rpx;
		overflow: hidden;
		 text-overflow: ellipsis;
		 display: -webkit-box;
		 -webkit-line-clamp: 1;
		 -webkit-box-orient: vertical;
	}
	.title_btn{
		width: 120rpx;
		text-align: center;
		height: 40rpx;
		line-height: 40rpx;
		font-size: 24rpx;
		color: #3AC9B5;
		border: 1rpx solid rgba(30, 211, 148, 1);
		/* border-image: linear-gradient(116deg, rgba(30, 211, 148, 1), rgba(4, 183, 184, 1)) 1 1; */
		border-radius: 8rpx;
		background: rgba(37,255,231,0.07);
	}
	.time{
		color: #999999;
		font-size: 24rpx;
		padding: 34rpx 28rpx;
	}
	.item_title{
		font-size: 28rpx;
		font-weight: bold;
	}
	.sub_content{
		background: #F9F9F9;
		padding: 50rpx 28rpx;
	}
	.item_box{
		width: 692rpx;
		background: #F9F9F9;
		margin-top: 36rpx;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		opacity: 1;
	}
	.item_line{
		height: 92rpx;
		line-height: 92rpx;
		padding: 0 20rpx;
		display: flex;
		justify-content: space-between;
		font-size: 28rpx;
	}
</style>